package com.site.service;

import com.site.dao.ConfigDao;
import com.site.entity.ConfigEntity;

import java.sql.SQLException;

public class ConfigService {
    ConfigDao dao;
    public ConfigService() throws SQLException, ClassNotFoundException {
        dao=new ConfigDao();
    }

    public ConfigEntity getSiteConfig() throws SQLException {
        return  dao.getConfig();
    }
}
